# (C) Copyright 2023- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.

# Import for ecland project
#
# This file is included during
#
#    find_package( ecland [QUIET] [REQUIRED] )
#

##################################################################
## Export project variables

set( ${CMAKE_FIND_PACKAGE_NAME}_VERSION_STR            @PROJECT_VERSION@ )
set( ${CMAKE_FIND_PACKAGE_NAME}_HAVE_OMP               @HAVE_OMP@ )
set( ${CMAKE_FIND_PACKAGE_NAME}_HAVE_SINGLE_PRECISION  @HAVE_SINGLE_PRECISION@ )
if( ${CMAKE_FIND_PACKAGE_NAME}_HAVE_SINGLE_PRECISION )
  set( ${CMAKE_FIND_PACKAGE_NAME}_HAVE_SINGLE_PRECISION 0 )
else ()
  set( ${CMAKE_FIND_PACKAGE_NAME}_HAVE_DOUBLE_PRECISION 1 )
endif()

if( NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY )
  message( STATUS "Found ${CMAKE_FIND_PACKAGE_NAME} version ${${CMAKE_FIND_PACKAGE_NAME}_VERSION_STR}" )
endif()
